
#include "Interop.h"
#include "Sphere.h"

Sphere::Sphere(int id, float mass, float radius) {
	this->m_id = id;
	this->m_mass = mass;
	this->m_radius = radius;
}

Sphere::Sphere(JNIEnv* env, jobject javaObj) {
	this->m_id = InteropGetID(env, javaObj);
	this->m_mass = InteropGetFloatField(env, javaObj, "mass");
	this->m_radius = InteropGetFloatField(env, javaObj, "radius");
}

int Sphere::GetID(){
	return this->m_id;
}

float Sphere::GetMass(){
	return this->m_mass;
}

float Sphere::GetRadius(){
	return this->m_radius;
}
